package com.sinosoft.emplmis.jobless.service;

import java.util.List;

import org.apache.log4j.Logger;

import com.sinosoft.emplmis.jobless.entity.KnryAidrecordEntity;
import com.sinosoft.emplmis.jobless.entity.KnryTrackingrecordEntity;
import com.sinosoft.emplmis.jobless.manager.KnryTrackingrecordManager;
import com.sinosoft.emplmis.jobless.web.dto.JoblessSearchData;

public class KnryTrackingrecordService {

	private KnryTrackingrecordManager knryTrackingrecordManager;

	public KnryTrackingrecordManager getKnryTrackingrecordManager() {
		return knryTrackingrecordManager;
	}

	public void setKnryTrackingrecordManager(KnryTrackingrecordManager knryTrackingrecordManager) {
		this.knryTrackingrecordManager = knryTrackingrecordManager;
	}
	
	public int insert(KnryTrackingrecordEntity Entity) {
		return knryTrackingrecordManager.insert(Entity);
	}
	
	public List<KnryTrackingrecordEntity> selectAll(JoblessSearchData data,String unemployedId){
		return knryTrackingrecordManager.selectAll(data,unemployedId);	
	}
	
	public int deleteByPrimaryKey(String id){
		return knryTrackingrecordManager.deleteByPrimaryKey(id);
	}
	
	public KnryTrackingrecordEntity selectByPrimaryKey(String id){
		return knryTrackingrecordManager.selectByPrimaryKey(id);	
	}
	
	public int updateByPrimaryKey(KnryTrackingrecordEntity record) {
		return knryTrackingrecordManager.updateByPrimaryKey(record);
	}
	
	public KnryTrackingrecordEntity getpicById(String id) {
		return knryTrackingrecordManager.getpicById(id);
	}
	
	/**
	  * 获取总条目数
	  * @param data
	  * @return
	  */
	public int count(String unemployedId){
		Logger.getRootLogger().info("获取总条目数");
	    return knryTrackingrecordManager.count(unemployedId);
    }
}
